import { pubRequire } from '@utils/public'
const baseUrl = '/logs/changelogs'
//获取时间线
export function getTimeLine(obj, callbBack, errBack) {
  return pubRequire('get', `${baseUrl}`, obj, callbBack, errBack)
}
//新增更新日志
export function addUpdateLog(obj, callbBack, errBack) {
  return pubRequire('post', `${baseUrl}`, obj, callbBack, errBack)
}
//根据id查询更新日志
export function getUpdateLog(id, callbBack, errBack) {
  return pubRequire('get', `${baseUrl}/${id}`, '', callbBack, errBack)
}
//编辑更新日志
export function editUpdateLog(id, obj, callbBack, errBack) {
  return pubRequire('put', `${baseUrl}/${id}`, obj, callbBack, errBack)
}
//删除更新日志
export function delUpdateLog(id, callbBack, errBack) {
  return pubRequire('delete', `${baseUrl}/${id}`, '', callbBack, errBack)
}
